package cn.yh.register.client.cmn;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * 掉字典服务的feign接口
 */
@FeignClient("service-cmn")
public interface CmnDictClient {


    @GetMapping("admin/cmn/dict/getName/{value}")
    String getName(@PathVariable String value);

    @GetMapping("admin/cmn/dict/getName/{dictCode}/{value}")
    String getName(@PathVariable String dictCode, @PathVariable String value);

}
